cmake_minimum_required(VERSION 3.10.2)
project("opencv")

include_directories(include)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}")
message(-----------------)
message(${CMAKE_SOURCE_DIR})


add_library(
        native-lib
        SHARED
        native-lib.cpp)


find_library(
        log-lib
        log)

target_link_libraries(
        native-lib
        opencv_java4
        ${log-lib}
        jnigraphics
        android
)